package com.dx.spring6_15.configBeanMethod;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {

		ApplicationContext ctx = new ClassPathXmlApplicationContext("com/dx/spring6_15/configBeanMethod/configBeanApplicationContext.xml");
		
		Car car1 = (Car)ctx.getBean("car");
		System.out.println(car1);
		
		Car car2 = (Car)ctx.getBean("car2");
		System.out.println(car2);
		
		Car car3 = (Car)ctx.getBean("beanFactory");
		System.out.println(car3);
		
	}

}
